home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib7 / v_09_10 / 9n10092a < prev    next >
Encoding:
Text File  |  1995-11-01  |  357 b   |  22 lines

  1. /*
  2.     listing 5 - lookup_print.c
  3. */
  4.  
  5. #include <stdio.h>
  6. #include "common.h"
  7.  
  8. lookup_print (struct record *tran_start)
  9. {
  10.  
  11.   printf ("id     = %5d, ", tran_start->id);
  12.  
  13.   printf ("number = %5d, ", tran_start->number);
  14.  
  15.   printf ("price  = %5.2f, ", tran_start->price);
  16.  
  17.   printf ("code   = %5s\n", tran_start->code);
  18.  
  19.   printf ("\n\n");
  20.  
  21. }
  22.